package com.mybatisplus.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * 项目名称：mybatis_plus_demo
 * 类 名 称：User
 * 类 描 述：TODO
 * 创建时间：2020/5/21
 * 创 建 人：Areli
 */
@Data
public class User {
    @TableId(type = IdType.ID_WORKER)
    private Long id;
    private String name;
    private Integer age;
    private String email;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @TableLogic
    private Integer deleted;
    @Version
    private Integer version;
}
